<include file="Admin/Public/Header" />
<table width="100%" height="31px" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
    <tr>
        <td height="31">
            <div class="titlebt">
                    修改商品
            </div>
        </td>
    </tr>
</table>

<div class="main">
    <div class="form">
        <php>$do = I('get.do');</php>
        <form method='post' id="form_do" name="form_do" enctype="multipart/form-data" action="{:U('Admin/Goods/Lists', 'do=Edit')}">
            <dl>
                <dt> <span class="red">* </span>标题：</dt>
                <dd>
                    <input type="text" name="goods_title" class="inp_one" value="{$goods.goods_title}" placeholder="" required/>
                </dd>
            </dl>

            <!--dl>
                <dt> 每份数量：</dt>
                <dd>
                    <input type="text" name="goods_amount"  class="inp_one" value="{$goods.goods_amount}" placeholder="" />
                </dd>
            </dl-->

            <dl>
                <dt> 价格：</dt>
                <dd>
                    <input type="text" name="goods_price"  class="inp_one" value="{$goods.goods_price}" placeholder="" />
                </dd>
            </dl>

            <dl>
                <dt> 发布数量：</dt>
                <dd>
                    <input type="text" name="goods_storage"  class="inp_one" value="{$goods.goods_storage}" placeholder="" />
                </dd>
            </dl>

            <dl>
                <dt> 游戏区服：</dt>
                <dd>
                    <volist name="goods.goods_relation" id="v" key="key">
                        <php>$t = count($goods['goods_relation']);</php>
                        <if condition="$key gt 1">
                            {$v.gc_name}<if condition="$key lt $t">/</if>
                        </if>
                    </volist>
                </dd>
            </dl>

            <dl>
                <dt> 卖家联系方式：</dt>
                <dd>
                    手机号码:<span type="text" class="inp_one" style="border: none;">{$goods.goods_mobile|replacement=###}</span>
                    QQ:<span type="text" class="inp_one" style="border: none;">{$goods.goods_qq|replacement=###}</span>
                </dd>
            </dl>

	        <dl>
		        <dt> 支付宝账号：</dt>
		        <dd>
			        {$goods.goods_alipay|replacement=###}
		        </dd>
	        </dl>

	        <dl>
		        <dt> 游乐淘账号：</dt>
		        <dd>
			        {$goods.goods_tao|replacement=###}
		        </dd>
	        </dl>

            <dl><dt>图片：</dt>
                <dd><empty name="goods['goods_pic']">用户没有上传图片
                    <else />
                    <volist name="goods.goods_pic" id="v" key="key">
                    <a href="http://{$_SERVER['HTTP_HOST']}/Application/Ucmaim/Uploads/{$v}" target="_blank">
                        <img src="http://{$_SERVER['HTTP_HOST']}/Application/Ucmaim/Uploads/{$v}" style="max-width: 120px;max-height: 120px"></a>
                </volist>
                </empty></dd>
            </dl>

            <dl>
                <dt> 详细说明：</dt>
                <dd>
                    <textarea rows="5" name="goods_content" placeholder=""  >{$goods.goods_content}</textarea>
                </dd>
            </dl>



            <div class="form_b">
                <input type="hidden" name="goods_id" value="{$goods.goods_id}">
                <input type="submit" class="btn_blue" id="submit" value="提 交">
                <input type="button" class="btn_blue" value="返 回" onclick="history.go(-1);">
            </div>
        </form>
    </div>
</div>
<include file="Admin/Public/Copyright" />